<template>
  <div>
    <a-modal
      v-model:visible="visible"
      :footer="upgrade"
      title="版本信息"
      @ok="handleOk"
    >
      <div class="content">
        <div class="img"></div>
        <div class="title1">已是最新版本</div>
        <div class="title2">发现 V1.0.1版本</div>
      </div>
      <div>
        <div>更新内容：</div>
        <!-- <div>1、增加功能</div> -->
      </div>
    </a-modal>
  </div>
</template>
<script>
import { getNewVersionClinet, downloadNewVersionClinet } from "@/api/course.js";

export default {
  data() {
    return {
      visible: false,
      upgrade: null,
    };
  },
  created() {},
  mounted() {},
  methods: {
    show() {
      this.visible = true;
      this.getClientGrindingData();
    },

    async getClientGrindingData() {
      //获取磨课
      const res = await getNewVersionClinet({
        versionNumber: "v1.1.0",
        systemFlag: 1,
      });
      console.log(res, "请求");
    },

    handleOk() {
      this.visible = false;
    },
  },
};
</script>
<style lang="less" scoped>
.img {
  width: 100px;
  height: 100px;
  border: 1px solid #999;
}
.content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.title1 {
  color: #2a75dd;
  font-size: 20px;
}

.title2 {
  font-weight: 600;
}
</style>
